-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PSA interruptible export public-key get num ops API #9820
Add PSA interruptible export public-key get num ops API #9820
Conversation
d96914d
to
db56913
Compare
53e7ad2
to
ef5c8a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First pass, looks good to me, obvious rebase incoming, so not approving yet.
ef5c8a9
to
254b6f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me for what is there, but either some coverage is missing or I missed some of the tests.
|
||
num_ops = psa_export_public_key_iop_get_num_ops(&export_key_operation); | ||
TEST_EQUAL(num_ops, 0); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the sequence
/*first operation*/
setup()
complete() until SUCCESS
/*second operation using the same operation object*/
setup()
complete()
get_num_ops()
the call to get_num_ops
should only get the op count from the second operation. Is this tested anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a test for it.
|
||
num_ops = psa_export_public_key_iop_get_num_ops(&export_key_operation); | ||
TEST_EQUAL(num_ops, 0); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about the case of calling psa_export_public_key_iop_xxx
on a public key object? Is this in scope for this pull request (I guess so since #9649 doesn't mention a limitation)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is in scope. Added a test for it as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Good news, I've been able to port this to TF-PSA-Crypto quite easily. I will share how I've done it. |
5c3f36c
1cdef01
to
5c3f36c
Compare
5c3f36c
to
5f58453
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ps() Signed-off-by: Waleed Elmelegy <[email protected]>
e809ef4
5f58453
to
e809ef4
Compare
Updated the TF-PSA-Crypto submodule to point to merged commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
fixes #9649
Add PSA interruptible export public-key get num ops API
TF-PSA-Crypto PR: Mbed-TLS/TF-PSA-Crypto#119
PR checklist
Please remove the segment/s on either side of the | symbol as appropriate, and add any relevant link/s to the end of the line.
If the provided content is part of the present PR remove the # symbol.